home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Guidemac 2
/
Guidemac 2.iso
/
Logiciels divers T1
/
PAO⁄TdT
/
LaserWriter Image Centring
/
Current Margin Settings
next >
Wrap
Text File
|
1993-09-22
|
986b
|
21 lines
/str 32 string def %Define a 32 character string for later use.
/Times-Roman findfont %Lookup font in fontdict and push it on stack.
15 scalefont setfont %Push size, scale, and make it the current font.
72 700 moveto %One inch over, and 700 72nds up.
statusdict begin %We'll be using two operators from statusdict.
(Margins for ) %Push the leading text on the stack.
show %Show the topmost string from the stack at 72 700.
str %Push an empty string of 32 length on stack.
printername %Puts the LaserWriter name in the string.
show %Show it.
72 680 moveto %Move back to 1 inch left, and down 20 points.
margins %Push top and left margins onto stack.
( Xoffset set to: ) %Push leading string onto stack.
show %Show it.
str %Push an empty string.
cvs show %Convert left margin into the string and show it.
72 660 moveto %Do the same thing again for the top margin.
( Yoffset set to: ) %
show str cvs show %
clippath stroke %Draw a frame around the page border.
showpage %spit out the page.